package com.authine.cloudpivot.web.api.secondopen.service.impl;

import com.authine.cloudpivot.web.api.secondopen.dao.AdvertMapper;
import com.authine.cloudpivot.web.api.secondopen.domain.FileInfo;
import com.authine.cloudpivot.web.api.secondopen.modules.AdvertVO;
import com.authine.cloudpivot.web.api.secondopen.service.AdvertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdvertServiceImpl implements AdvertService {

    @Autowired
    private AdvertMapper advertMapper;

    @Override
    public List<AdvertVO> getAdvert() {
        return  advertMapper.getAdvert();
    }

    @Override
    public FileInfo getPhoto(String id) {
        return advertMapper.getPhoto(id);
    }
}
